package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AhhcMedicalStaffMapper;
import com.ruoyi.system.domain.AhhcMedicalStaff;
import com.ruoyi.system.service.IAhhcMedicalStaffService;

/**
 * 医护管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-14
 */
@Service
public class AhhcMedicalStaffServiceImpl implements IAhhcMedicalStaffService 
{
    @Autowired
    private AhhcMedicalStaffMapper ahhcMedicalStaffMapper;

    /**
     * 查询医护管理
     * 
     * @param id 医护管理主键
     * @return 医护管理
     */
    @Override
    public AhhcMedicalStaff selectAhhcMedicalStaffById(String id)
    {
        return ahhcMedicalStaffMapper.selectAhhcMedicalStaffById(id);
    }

    /**
     * 查询医护管理列表
     * 
     * @param ahhcMedicalStaff 医护管理
     * @return 医护管理
     */
    @Override
    public List<AhhcMedicalStaff> selectAhhcMedicalStaffList(AhhcMedicalStaff ahhcMedicalStaff)
    {
        return ahhcMedicalStaffMapper.selectAhhcMedicalStaffList(ahhcMedicalStaff);
    }

    /**
     * 新增医护管理
     * 
     * @param ahhcMedicalStaff 医护管理
     * @return 结果
     */
    @Override
    public int insertAhhcMedicalStaff(AhhcMedicalStaff ahhcMedicalStaff)
    {
        return ahhcMedicalStaffMapper.insertAhhcMedicalStaff(ahhcMedicalStaff);
    }

    /**
     * 修改医护管理
     * 
     * @param ahhcMedicalStaff 医护管理
     * @return 结果
     */
    @Override
    public int updateAhhcMedicalStaff(AhhcMedicalStaff ahhcMedicalStaff)
    {
        return ahhcMedicalStaffMapper.updateAhhcMedicalStaff(ahhcMedicalStaff);
    }

    /**
     * 批量删除医护管理
     * 
     * @param ids 需要删除的医护管理主键
     * @return 结果
     */
    @Override
    public int deleteAhhcMedicalStaffByIds(String[] ids)
    {
        return ahhcMedicalStaffMapper.deleteAhhcMedicalStaffByIds(ids);
    }

    /**
     * 删除医护管理信息
     * 
     * @param id 医护管理主键
     * @return 结果
     */
    @Override
    public int deleteAhhcMedicalStaffById(String id)
    {
        return ahhcMedicalStaffMapper.deleteAhhcMedicalStaffById(id);
    }
}
